package com.example.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.crypto.Mac;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@ApiModel("订单实体类")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TicketVO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单ID")
    private int ticketID;
    @ApiModelProperty("用户ID")
    @NotNull(message = "用户ID不能为空")
    private Integer userID;
    @ApiModelProperty("赛事ID")
    @NotNull(message = "赛事ID不能为空")
    private Integer eventID;
    @ApiModelProperty("座位IDs")
    @NotNull(message = "座位IDs不能为空")
    private List<Integer> seatID;
    @ApiModelProperty("单价格")
    @NotNull(message = "单价格不能为空")
    private BigDecimal ticketPrice;
    @ApiModelProperty("订单的创建时刻")
    private LocalDateTime createTime;
}
